<template>
    <div class="box">
        <div class="top"></div>
        <div class="content">
            {{ store.lb }}
            <van-swipe-cell >
                <van-card :num="item.count" :price="item.price" :desc="item.desc" :title="item.title"  v-for="item in store.lb " :key="item.id"

                :thumb="item.image" />
                <template #right>
                    <van-button square text="删除" type="danger" class="delete-button" />
                </template>
                </van-swipe-cell>

        </div>
        <van-submit-bar :price="3050" button-text="提交订单" @submit="onSubmit" @click="$router.push('/sucess')">
  <van-checkbox v-model="checked">全选</van-checkbox>
  <template #tip>
    你的收货地址不支持配送, <span @click="onClickLink">修改地址</span>
  </template>
</van-submit-bar>
    </div>
</template>
<script setup>
import { useCounterStore } from '@/stores/counter'
// 可以在组件中的任意位置访问 `store` 变量 ✨
const store = useCounterStore()

</script>